/*
*
* PDFMaker
*
* This class makes a pdf when instructed to do so by a UI component
*
*/
class PDFMaker {
  
  // attributes
  boolean record;
  String path;
  
  // constructor method
  PDFMaker() {
  }
  
  // switchRecord method
  // switches the status of the "record" variable
  void switchRecord() {
    if(record) {
      record = false;
    } else {
      record = true;
    } // if
  } // switch method
  
  // recordOn
  // checks status of the "record" variable and, if true, turns on pdf recording
  void recordOn() {
    if(record) {
      beginRecord(PDF, path);
    } // if
  } // recordOn method
  
  // recordOff
  // checks status of the "record" variable; if true, turns off pdf recording and
  // sets "record" to false 
  void recordOff() {
    if(record) {
      endRecord();
      record = false;
    } // if
  } // recordOff method  
  
  // -----------------------------------
  // check record
  // checks if record is on or off
  // -----------------------------------
  boolean checkRecord() {
    if(record) {
      return true;
    } else {
      return false;
    }
  } // checkRecord
    
    
} // PDFMaker class
